package com.softtown.modules.organization.dto;

import com.softtown.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @version v1.0
 * @ProjectName: softtown-aioffice
 * @ClassName: CompOrgPosnDTO
 * @Description: 公司岗位DTO层
 * @Author: fuming
 * @Date: 2019/6/4 18:33
 */
@Data
@ApiModel(value = "公司岗位")
public class CompOrgPosnDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "岗位id")
    private Long id;

    @ApiModelProperty(value = "公司id")
    private Long compId;

    @ApiModelProperty(value = "岗位名称")
    @NotBlank(message = "{company.positionname.require}", groups = DefaultGroup.class)
    private String name;

    @ApiModelProperty(value = "排序")
    @NotBlank(message = "{company.sort.require}", groups = DefaultGroup.class)
    private String sort;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "更新者")
    private Long updater;

    @ApiModelProperty(value = "更新时间")
    private Date updateDate;

    @ApiModelProperty(value = "更新时间戳")
    private String updateTimestamp;

    @ApiModelProperty(value = "逻辑删除")
    private Integer isDeleted;

}
